<!--#include file="admin/Includes/constants.asp"-->
<!--#include file="admin/Includes/validate.asp"-->
<%
Dim aData1, aData2, aData3, aData4, hasData2, hasData4, nRows, nRows2, nRows4
Dim i, action
dim bgcolor, fontcolor, width, format, cat, result
dim urlsite, urlxml, urlxsl


CloseCon
Action = request("act")

if Action <> "" then

	bgcolor= getData("rssbgcolor")
	fontcolor = getdata("rssfontcolor")
	width = getData("rsswidth")
	format  = getData("rssformat")
	cat = getData("rsscat")
	
	format = 3
	cat = "main-rss.xml"
	
	urlsite = "http://www.thoitrang.com/"
	urlxml = """"& urlsite &"rss/"& cat &""""
	urlxsl = """"& urlsite &"rss/rsstype"&format&".xsl"""
		
result = "<script src='"&urlsite&"system/rssclient.js' type='text/javascript'></script>" & vbcrlf &_
"<script language='JavaScript'>" & vbcrlf &_
"<!--" & vbcrlf &_
	"transform("&urlxml&", "& urlxsl &");" & vbcrlf &_	
	"setProperty("""&bgcolor&""", """&fontcolor&""", "&width&");" & vbcrlf &_	
"//-->" & vbcrlf &_
"</script>" 
	
end if


%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<Meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Thoitrang.com Generate RSS</title>
	<Meta name="keywords" content="thoi trang, thoitrang, thoi trang tre, thoi trang viet nam"> 
	<Meta name="description" content="thoi trang .com ra doi nham cung cap noi dung moi nhat cua thoi trang <%= strYear %>, cap nhat thong tin thuong xuyen tinh hinh thoi trang viet nam cung nhu phan tich khuynh huong thoi trang tre hay nhat">
	<Meta http-equiv=" content-language" content ="vi">
	<Meta name="Robots" content="noindex,nofollow">
	<link rel="stylesheet" type="text/css" href="system/styles.css">
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> 
	<link rel="icon" href="/favicon.ico" type="image/x-icon"> 
</head>

<body>
<h1 class="sh">Thoi Trang</h1>
<h3 class="sh">Thoi Trang tre viet nam</h3>
<h5 class="sh">thoi trang .com ra doi nham cung cap noi dung moi nhat cua thoi trang <%= strYear %>, cap nhat thong tin thuong xuyen tinh hinh thoi trang viet nam cung nhu phan tich va tien doan khuynh huong thoi trang tre, tiep can va du doan ca xu huong trong nuoc cung nhu tren the gioi voi nhung tin thoi trang moi nhat va hay nhat. chung toi luon no luc het suc de mang lai mot noi dung bo ich va thuc te tu nhung chiec ao thoi trang tu trong doi song hang ngay cua chung ta den nhung giay phut quang trong nhat cua cuoc doi voi nhung thoi trang ao cuoi long lay nhat. Chung toi luon mong doi su dong gop y kien cua cac ban de giup trang web nay ngay cang hoan thien hon.</h5>
<table border="0" cellpadding="0" cellspacing="0" width="990" align="center">	
	
	<!--#include file="system/top.asp" -->
	<!--main body-->
	<tr bgcolor="#6b5a60">
		<td width="160" style="height:1px;"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td>
		<td width="522" valign="top" bgcolor="#B6A8AD" rowspan="2">
		<!--body content-->		
		<table border="0" cellpadding="0" cellspacing="1" width="100%" bgcolor="#B6A8AD">			
			<tr><td colspan="3" style="padding-left:12px; "><img src="hinh-thoi-trang/ket-qua-tham-khao-hp.gif" width="400" height="40"></td></tr>
			<tr>
				<!--col left-->	
				<td valign="top" height=680>									
					<table cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF" width="100%">
						<tr>
							<td style="padding-left:9px;padding-top:11px;" valign=top>								
							<table border="0" cellpadding="3" cellspacing="0" >
							<form action="syndicaterss.asp" name="frm" method=post>
								<tr>
									<td class="paging">BgColor</td>
									<td><INPUT class=txtInput id=color_1  value="<%=bgcolor%>" name="rssbgcolor"></DIV></td>	
								</tr>
								<tr>
									<td class="paging">Width</td>
									<td><input type="text" name="rsswidth" class="txtInput" value="<%=width%>"></td>	
								</tr>				
								<tr>
									<td class="paging">Text color</td>
									<td><input type="text" name="rssfontcolor" class="txtInput" value="<%=fontcolor%>"></td>	
								</tr>								
								<tr>
									<td class="paging">Format</td>
									<td><select name="rssformat" class="txtInput" style="width:130px;">
									<%for i=0 to ubound(arTypeRSS)%>
											<option value="<%=i+1%>" <%if format = (i+1) then %> SELECTED <%end if%> ><%=arTypeRSS(i)%></option>
									<%next%>
										</select>
									</td>	
								</tr>	
								<tr>
									<td class="paging">Category</td>
									<td><select name="rsscat" class="txtInput" style="width:130px;">
										<option value="0"  <%if cat = "0" then %> SELECTED <%end if%>  >All Site</option>
										<option value="1"  <%if cat = "1" then %> SELECTED <%end if%>  >Main Cat</option>						
										</select>
									</td>	
								</tr>	
								<tr>
									<td class="paging"></td>
									<td><input type="submit" name="act" value="Generate Code" class="btnGo"></td>	
								</tr>					
							</form>						
								<tr>
									<td colspan="2" class="paging"><br><br>Copy code bellow:
									<br><textarea cols="60" rows="8" name="result" ><%=result%></textarea></td>	
								</tr>	
							</table>				
						</td>						
					</tr>
				</table>
				</td>
				<!--/col left-->							
			</tr>
		</table>				
								
		<!--/body content-->
		</td>
		<td width="308" style="height:1px"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td>
		</tr>	
	<tr bgcolor="#ffffff">
		<td bgcolor="#000000" width="160" valign="top">
			<!--#include file="system/left.asp" -->
		</td>
		<!--missing 1 TD because of Rowspan-->
		<td bgcolor="#614B00" width="308" valign="top">
			<table border="0" cellpadding="0" cellspacing="0" width="308" align="right">
				<tr bgcolor="#000000"><td colspan="2"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td></tr>
				<form action="search.asp?ckid=<%=ckid%>" method="post">
				<tr bgcolor="#8D0045">
					<td width="154" valign="top" height="33" ><input type="text" name="search" value="Tìm kiếm" size="22" class="txtSearch"></td>
					<td width="154" valign="top" style="padding-top:7px;padding-left:3px;"><input type="submit" name="go" value="TÌM" class="btnGo"></td>
				</tr>
				</form>
				<tr bgcolor="#000000"><td colspan="2"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td></tr>
				<!--Ads Starts-->
				<tr><td align="center" colspan="2"><img src="hinh-quang-cao/neimanmarcus350x250.jpg" alt="" width="300" height="250" border="0"></td></tr>
				<!--Ads Ends-->
			</table>	
		</td>
	</tr>		
	<!--#include file="system/bottom.asp" -->
	<tr><td><h5 class="sh">ban dang doc thoi trang<h5></td></tr>
</table>


</body>
</html>
